﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Menu</title>
    <LINK href="style.css" type="text/css" rel="stylesheet">
</head>
<body>
    <form id="form1" runat="server">
    <div>
        &nbsp;<asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/product.xml">
        </asp:XmlDataSource>
    
    </div>
        <asp:Menu ID="Menu1" runat="server" DataSourceID="XmlDataSource1">
            <DataBindings>
                <asp:MenuItemBinding DataMember="hardWare" TextField="value" />
                <asp:MenuItemBinding DataMember="motherBoards" TextField="name" />
                <asp:MenuItemBinding DataMember="item" TextField="#InnerText" />
                <asp:MenuItemBinding DataMember="memory" TextField="name" />
                <asp:MenuItemBinding DataMember="item" TextField="#InnerText" />
                <asp:MenuItemBinding DataMember="hardDisk" TextField="name" />
                <asp:MenuItemBinding DataMember="item" TextField="#InnerText" />
            </DataBindings>
        </asp:Menu>
    </form>
</body>
</html>
